<template>
<div class="deatailSwiper">
  <swiper class="swiperClass">
    <swiper-item v-for="item in topImages" :key="item.index">
      <img :src="item" alt />
    </swiper-item>
  </swiper>
</div>
</template>

<script>
//导入轮播图组件
import {
  Swiper,
  SwiperItem
} from 'components/common/swiper'

export default {
  name: 'DetailSwiper',
  data() {
    return {}
  },
  components: {
    Swiper,
    SwiperItem,
  },

  computed: {},

  mounted() {},

  methods: {},
  props: {
    topImages: {
      type: Array,
      default () {
        return []
      },
    },
  },
}
</script>

<style scoped>
.swiperClass {
  height: 300px;
  overflow: hidden;
}
</style>
